package com.listen.service;

import java.net.UnknownHostException;
import java.util.List;

import com.listen.model.StartFlag;
import com.listen.model.StartFlagCriteria;
import com.listen.model.Study;
import com.listen.model.User;
import com.listen.model.UserCriteria;

public interface UserService {
	
	public int updateSelective(User record);
	
	List<User> selectByExample(UserCriteria example);
	
	List<User> selectByUser(User user);
	
	/**
	 * 八大员听课
	 * @param user
	 * @return
	 */
	public int listenEight(User user,int i) throws InterruptedException, UnknownHostException ;
	
	
	/**
	 * 查询待更新课程状态
	 */
	Study selectStudy(User user);
	
	
	/**
	 * 记录更新课程状态情况
	 * @param record
	 * @return
	 */
	public int insert(Study record );
	
	/**
	 * 重置当天听课数为0
	 * @return
	 */
	public int setTodayNum(User user);

	int updateStartFlag(StartFlag startFlag);

	StartFlag selectStartFlag(StartFlagCriteria startFlagCriteria);
	
	/**
	 * 获取代理URL
	 * @return
	 */
	public String getProxyURL();
}
